﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lidgren.Network;

namespace Network.Messages.LiveControl
{
    public class RequsetScreenRectMessage : NovaMessage
    {

        public RequsetScreenRectMessage() : base((ushort)CustomMessageType.RequsetScreenRectMessage)
        {
        }

        public int ScreenIndex;
        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write(ScreenIndex);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            ScreenIndex = message.ReadInt32();
        }
    }
}
